package com.xishu.to.foodpanda;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * variant定义
 */
@Data
public class FoodPandaVariant extends FoodPandaBase {
    private static final long serialVersionUID = 8585647859978789939L;

    @ApiModelProperty(value = "标题")
    private FoodPandaZhEn title;

    @ApiModelProperty(value = "价格")
    @FoodPandaAnnotation(fieldToString = true)
    private Double price = 0d;

    @ApiModelProperty(value = "归属于哪一个Product")
    private FoodPandaBase parent;

    @ApiModelProperty(value = "是否激活")
    private Boolean active;

    private Boolean isPrepackedItem = false;
    private Boolean isExpressItem = false;
    private Boolean excludeDishInformation = false;

    @ApiModelProperty(value = "细节")
    @FoodPandaAnnotation(listToObject = true)
    private List<? super FoodPandaBase> toppings;

    public FoodPandaVariant() {
        super.type = "Product";
    }
}
